package edu.cmu.ece.ds.droidchat.message;

import java.io.Serializable;
import java.math.BigInteger;

/* Number 3
 * From: init user
 * To: user that is being invited
 * Purpose: send message to invite somebody to create a session
 * including the sender's username and receiver's username
 * entire message are encrypted, see encrypt create session invitation message
 */

public class CreateSessionInvitationMessage extends CreateSessionMessage implements
	Serializable {

	private static final long serialVersionUID = -4722752785141784965L;
	
	//session id of the sender
	private String sender_username;
	private String receiver_username;
	private BigInteger public_modulus;
	private BigInteger public_exponent;
	
	//user name that you want encrypted with the private key
	public CreateSessionInvitationMessage(String chatSessionid,
			String self, String invited) {
		super(chatSessionid);
		sender_username = self;
		receiver_username = invited;
	}
	
	public String getSender_username() {
		return sender_username;
	}
	public String getReceiver_username() {
		return receiver_username;
	}
	public BigInteger getPublic_modulus() {
		return public_modulus;
	}
	public BigInteger getPublic_exponent() {
		return public_exponent;
	}

}
